package com.yanqu.road.entity.log.cross.sonhai;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_son_hai_user_die", desc = "山海伏兽-死亡日志", autoSave = true, dataUpload = true, eventName = "mountsea_death", uploadCk = true,isCross = true)
public class LogCrossSonHaiUserDie extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "mountsea_team")
    private int teamId;

    @FieldTypeAnnotation(desc = "击杀玩家id", dataAttribute = "mountsea_killerid")
    private long targetUserId;

    @FieldTypeAnnotation(desc = "被扣除山海灵气", dataAttribute = "mountsea_dedanima")
    private long loseAuraScore;

    public LogCrossSonHaiUserDie(int activityId, int groupId, long userId, int teamId, long targetUserId, long loseAuraScore) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.userId = userId;
        this.teamId = teamId;
        this.targetUserId = targetUserId;
        this.loseAuraScore = loseAuraScore;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
